import com.scetoop.bank.Bank;
import com.scetoop.bank.CheckingAccount;
import com.scetoop.bank.SavingAccount;


public class Fifthtest {
    public static void main(String[] args) {
        Bank bank = new Bank();

        // 添加客户和账户
        bank.addCustomer("Jane", "Simms");
        bank.getCustomer(0).addAccount(new SavingAccount(500.00, 0.03));

        bank.addCustomer("Owen", "Bryant");
        bank.getCustomer(1).addAccount(new CheckingAccount(500.00));

        bank.addCustomer("Tim", "Soley");
        bank.getCustomer(2).addAccount(new CheckingAccount(500.00, 500.00));

        bank.addCustomer("Maria", "Soley");
        bank.getCustomer(3).addAccount(bank.getCustomer(2).getAccount(0));

        // 测试交易
        //testCustomer(bank.getCustomer(0));
        //testCustomer(bank.getCustomer(1));
       // testCustomer(bank.getCustomer(2));
        //testCustomer(bank.getCustomer(3));
    }


        }